package org.redhat.auth.security.user;

import org.redhat.auth.security.data.DataModel;
import org.springframework.dao.DataAccessException;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * 接口，提供User信息
 * 
 * @author lingen.liu
 * 
 */
public interface UserService {
	
	/**
	 * 根据用户名返回用户
	 * @param username
	 * @return
	 * @throws UsernameNotFoundException
	 * @throws DataAccessException
	 */
	UserDetails loadUserByUsername(String username)
			throws UsernameNotFoundException, DataAccessException;

}
